package com.koron.system.zsj.controller;

import com.koron.bean.base.Response;
import com.koron.system.unityUser.entity.WsResult;
import com.koron.system.zsj.util.ZsjMessageUtil;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/zsj/msg")
@Api("珠三角发送短信接口")
public class ZsjMsgController {

    @Autowired
    private ZsjMessageUtil zsjMessageUtil;


    @GetMapping("/send")
    public Response sendMsg(String templateId,String phone,String [] params){
        WsResult wsResult = zsjMessageUtil.send(templateId, phone, params);
        return Response.success(wsResult);
    }
}
